# name : ds2csv macro
# key : ds2csv.simple
# contributor: Shuguang Sun
# --
* csvfref, openmode=REPLACE|APPEND, formats=Y|N, labels=Y|N, where=where-expression;
%ds2csv(data=${1:dtin}, runmode=b,
${2:$$(yas-choose-value '("csvfile" "csvfref"))}=\"&${3:$$(yas-choose-value '("__wksppath__" "__wksppath" "_wksppath_" "__prjpath__" "__prjpath"))}./data/${4:$$(yas-choose-value '("interim" "processed" "csv"|))}/$1.csv\", labels=${5:$$(yas-choose-value '("N" "Y"))}${99:, var=, where=})
